/**
 * FileName: MessageEvent
 * Author: Administrator
 * Date: 2020/12/8 0008 19:36
 * Description:
 */
package com.linkage.linkedlife.model;

/**
 * @ClassName: MessageEvent
 * @Description: java类作用描述
 * @Author: Clakr
 * @Date: 2020/12/8 0008 19:36
 */

public class MessageEvent {
    public static volatile MessageEvent messageEvent = null;
    public String message;

    public MessageEvent(String msg) {
        this.message = msg;
    }


    public MessageEvent getInstance(String msg) {

        if (messageEvent == null) {
            synchronized (this) {
                if (messageEvent == null) {
                    messageEvent = new MessageEvent(msg);
                }
            }
        }
        return messageEvent;
    }


}
